package com.itheima.d6_lambda;

public class LambdaTest1 {
    public static void main(String[] args) {

        /*Swimming s = new Swimming(){
            @Override
            public void swim() {
                System.out.println("游泳");
            }
        };
        s.swim();*/


        Swimming s = () -> System.out.println("游泳");
        s.swim();


    }
}


interface Swimming{
    void swim();
}